﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Newtonsoft.Json;

namespace Aliphant.Widget.JS.Models
{
    public class WidgetConfig
    {
        [JsonProperty("id")]
        public string Id { get; set; } = string.Empty;

        [JsonProperty("name")]
        public string Name { get; set; } = string.Empty;

        [JsonProperty("description")]
        public string Description { get; set; } = string.Empty;

        [JsonProperty("view")]
        public string View { get; set; } = string.Empty;

        [JsonProperty("script")]
        public string Script { get; set; } = string.Empty;

        [JsonProperty("single")]
        public bool Single { get; set; } = true;
    }
}
